#include<stdio.h>
int main(){
    int t = 64, input, n, sum;
   while(t--){
       sum = 0;
       scanf("%d", &n);
       while(n--){
           scanf("%d", &input);
           sum += input;
       }
    printf("%d\n", sum);
   }
    return 0;
}